body {
    background: url('/static/imgs/login.jpg') no-repeat;
    background-size: cover;
    /* 设置背景图片大小为 cover，保持宽高比并覆盖整个容器 */
    background-position: center;
    /* 将背景图片位置设置为中心 */
    background-repeat: no-repeat;
    /* 不重复背景图片 */
    height: 100vh;
    /* 将 body 的高度设置为视口高度，确保整个屏幕都被覆盖 */
    display: flex;
    justify-content: center;
    align-items: center;
}

html {
    overflow-y: hidden;
    overflow-x: hidden;
}

#login_box {
    width: 20%;
    height: 300px;
    background-color: #00000060;
    margin: auto;
    margin-top: 10%;
    text-align: center;
    border-radius: 10px;
    padding: 50px 50px;
}

h2 {
    color: #ffffff90;
    margin-top: 5%;
    letter-spacing: 6px;
}

.input-box {
    margin-top: 15%;
}

span {
    color: #fff;
}

input {
    border: 0;
    width: 60%;
    font-size: 15px;
    color: #fff;
    background: transparent;
    border-bottom: 2px solid #fff;
    padding: 5px 10px;
    outline: none;
    /*margin-top: 10px;*/
}

.but {
    margin-top: 30px;
    width: 60%;
    height: 30px;
    border-radius: 10px;
    border: 0;
    color: #fff;
    text-align: center;
    line-height: 30px;
    font-size: 15px;
    background-image: linear-gradient(to right, #30cfd0, #330867);
}

.but1 {
    display: inline-block;
    margin-top: 20px;
    width: 60%;
    height: 30px;
    border-radius: 10px;
    border: 0;
    color: #fff;
    text-align: center;
    line-height: 30px;
    font-size: 15px;
    background-image: linear-gradient(to right, #30cfd0, #330867);
    text-decoration: none;
}

#sign_up {
    margin-top: 45%;
    margin-left: 60%;
}

.but:hover {
    cursor: pointer;
}

a {
    color: #b94648;
}

.error {
    margin: 0;
    color: red;
    height: 10px;
}